package com.example.oracle.service.serviceImpl;

import com.example.oracle.mapper.ComplaintsMapper;
import com.example.oracle.pojo.Complaints;
import com.example.oracle.service.ComplaintsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 */
@Service
public class ComplaintsImpl implements ComplaintsService {
    @Autowired
    ComplaintsMapper complaintsMapper;

    @Override
    public int insertComplaints(Complaints complaints) {
        return complaintsMapper.insertComplaints(complaints);
    }

    @Override
    public List<Complaints> selectComplaints(Complaints complaints) {
        return complaintsMapper.selectComplaints(complaints);
    }

    @Override
    public int deleteComplaints(Complaints complaints) {
        return complaintsMapper.deleteComplaints(complaints);
    }
}
